Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » Linebreaks from fragments in table
icon5.gif  Linebreaks from fragments in table [message #1733224] Wed, 25 May 2016 07:14 Go to next message
Benajmin Schoenholzer is currently offline Benajmin SchoenholzerFriend
Messages: 33
Registered: March 2016
Member
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 Go to previous messageGo to next message
Jean-Francois Rolland is currently offline Jean-Francois RollandFriend
Messages: 1
Registered: May 2016
Junior Member
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
Re: Linebreaks from fragments in table [message #1734636 is a reply to message #1733322] Fri, 10 June 2016 06:59 Go to previous message
Benajmin Schoenholzer is currently offline Benajmin SchoenholzerFriend
Messages: 33
Registered: March 2016
Member
Hello

Thank you very much for checking the issue. I will try this as soon as possible.

Best regards
Benny

Previous Topic:Empty image generation after Bug 492264 fix
Next Topic: Use strange character without lost format
Goto Forum:
  


Current Time: Fri Apr 26 04:42:18 GMT 2024

Powered by FUDForum. Page generated in 0.03360 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top