Thread View: adobe.framemaker.sgml
4 messages
4 total messages
Started by Miranda_Burgess
Mon, 14 Jul 2008 17:08
Bad line breaks when using code block element
Author: Miranda_Burgess
Date: Mon, 14 Jul 2008 17:08
Date: Mon, 14 Jul 2008 17:08
13 lines
1522 bytes
1522 bytes
Hi, FrameMaker seems to insert bad line breaks when using the codeblock element. (See example below). <codeblock> Add "Revenu" type Default</codeblock> <codeblock> Add Measure "Product Cost" Type Default</codeblock> <codeblock> Add Measure "Product Plan" Type Default</codeblock> <codeblock> Add Drill "By Product Line" Levels "Product Line"</codeblock> FrameMaker is inserting a line break between "Product" and "line". I manually removed the line break and then saved the file. When I opened the file again, FrameMaker has re inserted the line break. I have also removed the line break using XML Spy. However, again when I open the file back in FrameMaker, FrameMaker re introduces the line break. Any ideas on how to prevent this from happening? Is there a work around?
Re: Bad line breaks when using code block element
Author: Russ Ward
Date: Mon, 14 Jul 2008 17:57
Date: Mon, 14 Jul 2008 17:57
10 lines
1091 bytes
1091 bytes
Miranda,
It sounds like you should look up the "writer line break" read/write rule. You can specify element-by-element a minimum number of characters before a line break can occur, or do it globally for all elements. Something like:
writer
{
line break is 1000 characters;
}
Russ
Re: Bad line breaks when using code block element
Author: Miranda_Burgess
Date: Mon, 14 Jul 2008 18:21
Date: Mon, 14 Jul 2008 18:21
22 lines
1396 bytes
1396 bytes
Hi Russ,
Thanks for your help. These are the read/write rules we have set up for "code block".
element "codeblock" reader line break is forced return;
{
preserve line breaks;
}*/
/* Do we need these, as they all appear and inherit "preserve" from codeblock */
/* Currently commented out so that code text inline in a
doesn๏ฟฝt have space problems.
The codeblock element propagates the xml:space attribute anyway.
/*
/*
element "codehilite"
{
preserve line breaks;
}
My question is, if I change "preserve line breaks" to "line break is 1000 characters" will that solve my line break problem?
Re: Bad line breaks when using code block element
Author: Russ Ward
Date: Mon, 14 Jul 2008 19:00
Date: Mon, 14 Jul 2008 19:00
5 lines
1143 bytes
1143 bytes
Miranda, It should solve the problem that you have asked about here, but it might introduce other problems if there was some reason to preserve line breaks originally. Do you know why "preserve line breaks" is there to begin with? I think probably your best bet is just to experiment a little bit and see if you can get the results you want. Russ
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads