Bug 95093

Summary: [LOCALHELP] when inserting a variable is ignored line wrapping
Product: LibreOffice Reporter: tagezi <lera.goncharuk>
Component: DocumentationAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: olivier.hallot, philipz85, rb.henschel
Priority: medium    
Version: 5.1.0.0.alpha0+ Master   
Hardware: Other   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 80430    
Attachments: screenshot
a file with the variable
a file

Description tagezi 2015-10-15 17:15:12 UTC
Created attachment 119645 [details]
screenshot

when I insert a variable contains the line wrapping, it ignore.
For example, variable:
<paragraph id="par_id10013307115559" role="warning" xml-lang="en-US"><variable id="funt_im_warning">In any case the function returns a number in text format.<br/>If the function returns a complex number with some part equal zero, this part does not display in result.</variable></paragraph>

inserting:
<paragraph id="par_id22704971824910" role="warning"  localize="false" xml-lang="en-US"><embedvar href="text/scalc/01/func_imcot.xhp#funt_im_warning"/></paragraph>
Comment 1 tagezi 2015-10-15 17:16:39 UTC
Created attachment 119646 [details]
a file with the variable
Comment 2 tagezi 2015-10-15 17:17:08 UTC
Created attachment 119647 [details]
a file
Comment 3 tagezi 2015-10-15 17:18:29 UTC
 attachment 119646 [details] is file with the insert a variable
Comment 4 tagezi 2015-10-15 17:20:53 UTC
Ignore 3 posts above
attachment 119646 [details] is file with the variable
attachment 119647 [details] is file with the insert of variable
Comment 5 Yousuf Philips (jay) (retired) 2015-10-31 00:09:45 UTC
<embedvar> is for character level embedding and <embed> is for paragraph level embedding, so i'm assuming this is why the problem happens.

It would work fine like this.

For example, section:
<section id="funt_im_warning">
<paragraph id="par_id10013307115559" role="warning" xml-lang="en-US">In any case the function returns a number in text format.<br/>If the function returns a complex number with some part equal zero, this part does not display in result.</paragraph>
</section>

inserting:
<embed href="text/scalc/01/func_imcot.xhp#funt_im_warning"/>

The authoring pdf states about <embvar>:

"Text fragments can, for example, represent commonly used phrases or names of UI elements. These can be specified once and used in multiple places, reducing maintenance and localization effort." page 28

"This element is used to embed smaller text fragments with and without markup, which were previously declared as being variables." page 47

I'm closing this, but others are welcome to reopen if i'm mistaken. :D

@Lera: If you want us to be automatically notified with your bug reports, set the Blocks field in the bug submission page to the appropriate meta tag. :D