Skip to content

Inconsistent translation #606

@wdherndon

Description

@wdherndon

In an attempt to fix a problem with SpecifiedTradePaymentTerms, I tried to implement my own version and found I could not get an HTML-linefeed ("
") in my output because of inconsistent translation:

If my code is:

result.AddTradePaymentTerms("line1\nline2", dueDate);

The result is:

  <ram:SpecifiedTradePaymentTerms>
    <ram:Description>line1

line2</ram:Description>

If my code is:

result.AddTradePaymentTerms("line1 line2", dueDate);

The result is:

  <ram:SpecifiedTradePaymentTerms>
    <ram:Description>line1&amp;#10;line2</ram:Description>

In neither case could I get the desired:

  <ram:SpecifiedTradePaymentTerms>
    <ram:Description>line1&#10;line2</ram:Description>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions