Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jun 27, 2009 @ 18:54
    Jan Skovgaard
    1

    Only preformat once?

    There seems to be some problems using the "preformatted" style more than once in a page.

    Here http://our.umbraco.org/wiki/reference/umbracolibrary/getxmlnodebyid I have two XSLT examples, which both have been set to "preformatted". But when the page is saved only the first example is being displayed with the style.

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jun 27, 2009 @ 19:07
    Morten Bock
    1

    I just tried editing the page a few times. It seems that there is a minor problem with the sanitizer, so if there is already one codesample in the page, and you edit the page to add another, then the first pre tag is stripped because it already contains a style="prettyprint" attribute.

    But if you do both preformatting steps in one edit, then you should be fine.

    However this need to be fixed.

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jun 27, 2009 @ 19:11
    Jan Skovgaard
    0

    Ok I will try to make all code examples on page creation then :)

    Looking forward to the fix.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies