<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Wrong formatting of line breaks in Rich-Text element</title><link>https://www.infopathdev.com:443/forums/thread/51773.aspx</link><pubDate>Mon, 15 Feb 2010 16:49:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51773</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51773.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51773</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello Jonny,&lt;/p&gt;&lt;p&gt;I can see how this behavior would be frustrating to you and how it would be nice if at least the &amp;amp;nbsp; were placed inside all the tags instead of at the end of the DIV.&lt;/p&gt;&lt;p&gt;Perhaps my attempts to reproduce your situation are not exactly mimicking your behavior, but my InfoPath (2007) seems to be rendering the markup a bit differently:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;lt;div xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&amp;lt;font style=&amp;quot;FONT-SIZE: 7pt&amp;quot;&amp;gt;A line&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&amp;lt;font style=&amp;quot;FONT-SIZE: 7pt&amp;quot;&amp;gt;&amp;lt;/font&amp;gt;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&amp;lt;font style=&amp;quot;FONT-SIZE: 7pt&amp;quot;&amp;gt;another line&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;Unformatted line&amp;lt;/div&amp;gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;It seems strange that 2007 would use &amp;lt;font&amp;gt; tags while 2003 uses &amp;lt;span&amp;gt;s.&amp;nbsp; That seems like a step backwards, but the key difference is that the outer &amp;lt;div&amp;gt;s are not styled, while they are in your example.&amp;nbsp; Perhaps an upgrade to InfoPath 2007 could ameliorate the issue?&lt;/p&gt;&lt;p&gt;Another possible (though fiddly) workaround to this issue could be to use soft returns (Shift+Enter).&amp;nbsp; These are rendered as &amp;lt;br /&amp;gt; tags in the markup, and should not cause the issues you describe here.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Wrong formatting of line breaks in Rich-Text element</title><link>https://www.infopathdev.com:443/forums/thread/51765.aspx</link><pubDate>Mon, 15 Feb 2010 14:00:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51765</guid><dc:creator>JonnyW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51765.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51765</wfw:commentRss><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I am using Infopath 2003 (SP3) and have a formatting problem with line breaks in a Rich-Text element. &lt;/p&gt;
&lt;p&gt;Writing text to the element and inserting line breaks by the usage of return works fine so far. When I select some text inclusive the line break in order to apply some formatting, say, changing to Arial 7pt. Then all the selected text except of the line break gets the formatting. You can see the missing formatting instruction when the generated XML file is opened by a text editor. The generated extract looks like&lt;/p&gt;
&lt;p&gt;&amp;lt;div xmlns=&amp;quot;&lt;a href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&amp;quot; style=&amp;quot;MARGIN-TOP: 0.5pt; PADDING-RIGHT: 0cm; MARGIN-BOTTOM: 1.25pt; FONT-SIZE: 12pt&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;FONT-SIZE: 7pt&amp;quot;&amp;gt;&amp;lt;font face=&amp;quot;Arial&amp;quot;&amp;gt;This is the first line&amp;nbsp;&amp;lt;/font&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div xmlns=&amp;quot;&lt;a href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&amp;quot; style=&amp;quot;MARGIN-TOP: 0cm; PADDING-RIGHT: 0cm; MARGIN-BOTTOM: 6pt; FONT-SIZE: 12pt&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;FONT-SIZE: 7pt&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;font face=&amp;quot;Arial&amp;quot;&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div xmlns=&amp;quot;&lt;a href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&amp;quot; style=&amp;quot;MARGIN-TOP: 0cm; PADDING-RIGHT: 0cm; MARGIN-BOTTOM: 0pt; FONT-SIZE: 12pt&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;FONT-SIZE: 7pt&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;font face=&amp;quot;Arial&amp;quot;&amp;gt;Just another line.&amp;lt;/font&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;As can be seen the line break represented as whitespace &amp;quot; &amp;quot; is within the second div tag, but not with the font-tag. This becomes a problem when the content is used in other applications. E.g. in Word it results in a wrong formatting of the empty line (Arial 12pt instead of Arial 7pt). Beside that the line break is given as UTF-8=C2A0 or ASCII-decimal=160 that&amp;nbsp;is the non breaking space. This results in Word into an &amp;quot;invisible&amp;quot; circle character. &lt;/p&gt;
&lt;p&gt;If one use a text element the line break will be represented as CR LF, i.e. ASCII decimal 0D 0A.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It would be great if anybody of you could give me a hint on how to deal with line breaks properly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you very much.&lt;/p&gt;</description></item></channel></rss>