Subject: Re: [xml2rfc] hangText does not seem to work

From: Marc Petit-Huguenin <[email-masked]>
Date: Sun, 03 Feb 2013 10:52:12 -0800

On 01/28/2013 09:06 AM, Peter Saint-Andre wrote:
> On 1/28/13 8:30 AM, Cullen Jennings (fluffy) wrote:
> 
>> Sorry, I did not have this correct - the example below works. It seems
>> the problem is more when the text is empty so something like
> 
> 
>> <t hangText="destination_data "></t>
> 
>> <t>The destination value itself, which is an encoded DestinationData
>> structure, depending on the value of "type".</t>
> 
>> Looses the destination_data in the txt output
> 
> Because hangText doesn't work that way. For the output you want, use this:
> 
> <t hangText="destination_data ">The destination value itself, which is an
> encoded DestinationData structure, depending on the value of "type".</t>
> 
> If you want line breaks in there, use <vspace blankLines='1'/>.
> 
> Peter
> 

For the record, to do what Cullen wants (i.e., having the handText attribute
content on one line and the content of the element on the next line) the
xml2rfc fragment can be written this way:

<t hangText="destination_data"><vspace blankLines='0'/>
The destination value itself, which is an encoded DestinationData structure,
depending on the value of "type".</t>

This works in xml2rfc 1.36 and 2.4.0.

- -- 
Marc Petit-Huguenin
Email: [email-masked]
Blog: http://blog.marc.petit-huguenin.org
Profile: http://www.linkedin.com/in/petithug