Announcement

Collapse
No announcement yet.

Line weights

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Line weights

    Hello,

    I define my own XML file format for files: *.myxml
    My xml format is structured like this:
    Code:
    <a>
      <b>
        <c someAtt="...">
           ... include some other nodes
        </c>
        ... may have hundre 'c' nodes
        <c someAttr="..">
           ... include some other nodes
        </c>
      </b>
      <d>
        <e otherAttr="...">
           ... include some other nodes
        </e>
        ... may have hundre 'c' nodes
        <e someAttr="..">
           ... include some other nodes
        </e>
    </a>
    My XML file are tied with xmllint.
    I'd like that BC always aligns lines with nodes 'a', 'b' and 'd' because there are uniq in file
    I set one 'Line Weights' with 'Match character case' and 'Regular Expression' '</?(a|b|d)'
    Left file has 10 'c' nodes and Right has hundrers.
    I expect that '</b>' lines to be aligned but there are not.
    How could I do?

    I attach samples with BCFileFormats.xml

    Regards,

    Rno

  • #2
    Hello,

    Our Line Weights help influence the alignment, but is not an absolute control. Which nodes should align to which? Given your files, the <y> node does push near the bottom, because that is where the alignment algorithm thinks they should align, even though the number value does not match.
    Aaron P Scooter Software

    Comment

    Working...
    X