dbr.colstyle white-space:pre-wrap - replaces contents with 0.000

(3 posts) (2 voices)

Tags:

No tags yet.

  1. BWT-Raidrinn, Member

    I'm formatting some long text with "white-space:pre-wrap"
    when I add:

    select 'dbr.colstyle', 'Comments', dbo.mydbr_style('PreformattedText');

    Style: PreformattedText column [white-space:pre-wrap;]%.3f;

    It takes my text output:
    "tester - 06/30/2015: This is my test note tester - 06/30/2015: This is my test note 2"

    and replaces it with: 0.000

    when I comment the dbr.colstyle back out, my proper output comes back (albeit, not formatted correctly...)

    Any help would be greatly appreciated.

  2. BWT-Raidrinn, Member

    Figured it out, if you remove the %.3f; it fixes everything. The example on the page is a bit confusing.

  3. myDBR Team, Key Master

    The %.3f would be used if the column is a floating number and you want to use 3 decimals.

    You can also use the CSS style directly:

    select 'dbr.colstyle', 'Comments', '[white-space:pre-wrap;]';

    --
    myDBR Team


Reply

You must log in to post.