niallsco / kettle-cookbook

Automatically exported from code.google.com/p/kettle-cookbook
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Extended Description doesn't preserve formatting #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a job or transformation contains extended description with formatting (eg. 
line breaks), these are not preserved.

This can easily be fixed in kettle-report.xslt in 
<xls:template name="description">:

<xsl:if test="$node/extended_description[text()]">
  <p>
    <xsl:call-template name="PreserveLineBreaks">
      <xsl:with-param name="text" select="$node/extended_description"/>
    </xsl:call-template>
  </p>
</xsl:if>

where I take the template "PreserveLineBreaks" from
http://www.danrigsby.com/blog/index.php/2008/01/03/preserving-line-breaks-in-xml
-while-transforming-to-html-with-xslt/

Original issue reported on code.google.com by stefan.e...@gmail.com on 15 Jan 2012 at 2:41

GoogleCodeExporter commented 9 years ago
Btw.; it would also be nice to preserve white-space, but I've not yet figured 
out how to do that :-(
Stefan

Original comment by stefan.e...@gmail.com on 15 Jan 2012 at 4:24

GoogleCodeExporter commented 9 years ago
Hi! thanks for spotting this. 

I can (and should) preserve whitespace, but since the output format is HTML, 
things like linebreaks won't display as linebreaks in the output either.

I suppose I could copy the contents in a way that you could use html tags 
inside descriptions, would you like that?

Original comment by roland.bouman on 15 Jan 2012 at 6:17

GoogleCodeExporter commented 9 years ago
Hi Roland - Thx.
HTML tags would only help if they were supported by Spoon as well - else they 
would clutter the screen at the primary location for reading these comments ... 
but it's of course never hurting to have that option; and I'm sure others will 
love it!
Stefan

Original comment by stefan.e...@gmail.com on 16 Jan 2012 at 6:17

GoogleCodeExporter commented 9 years ago
... one more: Same story for <notepad> ;-)
Stefan

Original comment by stefan.e...@gmail.com on 21 Jan 2012 at 8:49

GoogleCodeExporter commented 9 years ago
This should by fixed by 
http://code.google.com/p/kettle-cookbook/source/detail?r=77
Please checkout that revision or later and see if the issue is solved to 
satisfaction. Then please mark this issue so I can close  it. 

Thanks.

Original comment by roland.bouman on 21 Jan 2012 at 9:32

GoogleCodeExporter commented 9 years ago
Hi Roland,

thanks a lot, looks great! (I needed change the directories in 'Create 
${OUTPUT_DIR} ...' to become independent of your paths)

Stefan

Original comment by stefan.e...@gmail.com on 26 Jan 2012 at 10:46

GoogleCodeExporter commented 9 years ago
Hi, 

We are using kettlecookbook_45 for automated documentation of 
jobs/transformations. but we are not getting proper HTML pages as it is missing 
filter rows step conditions, set variables variables, Shell script.

Could you please help me on ,how we can generate full fledge HTML pages fo 
jobs/transformations using kettlecookbook?

We are running this cookbook in pdi 4.4.0 and OS is windows 7

Waiting for your quick reply

Original comment by manisha....@gmail.com on 22 Jul 2013 at 9:04

GoogleCodeExporter commented 9 years ago
@manisha.kamble08,

hey, I already commented on the exact same request here 
http://code.google.com/p/kettle-cookbook/issues/detail?id=55. Can you please 
take the time to digest that comment?

In the future please stop adding comments to issues where they don't belong. 

Original comment by roland.bouman on 22 Jul 2013 at 5:41