Linebreaks from fragments in table [message #1733224] |
Wed, 25 May 2016 07:14  |
Eclipse User |
|
|
|
Hello
I am using fragments for getting all comments of a specified element:
<fragment name='addComment' importedBundles='commons;gmf;papyrus'><drop/>
<arg name='element' type='uml::Class'/><drop/>
[for (c:Comment | element.ownedElement)]<drop/>
[cleanAndFormat(c._body)/]
[/for]<drop/>
</fragment><drop/>
If i use this fragment into a table:
[element.addComment()/]
I can't drop the fragement call, because in this case the table is empty and if i not use the <drop/> i have a line break at the end of the line.
Does anybody know a workaround?
Greetings.
Benny
|
|
|
Re: Linebreaks from fragments in table [message #1733322 is a reply to message #1733224] |
Thu, 26 May 2016 13:19   |
Eclipse User |
|
|
|
Hello,
your problem seems to be similar to this bug :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=457260
In the current version of gendoc, when a fragment does not generate any string a paragraph mark is inserted.
A patch for this bug has been developped and will be included in the next release of gendoc.
We have integrated a new option to the fragment tag. This option is called removeClosingLine and when it is set to true the empty paragraph is not generated.
We plan to publish this new version of gendoc 0.6.0
If you want to test this option, it should be available in the nightly build.
Regards
jeff
|
|
|
|
Powered by
FUDForum. Page generated in 0.03427 seconds