Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support keeping a leader together with the word before it #24

Open
bertfrees opened this issue Jan 13, 2021 · 0 comments
Open

Support keeping a leader together with the word before it #24

bertfrees opened this issue Jan 13, 2021 · 0 comments
Assignees
Labels
bug Something isn't working Medium Prio

Comments

@bertfrees
Copy link
Contributor

In all the cases below, the leader should not be separated from the word before it:

<obfl>
  <layout-master name="body" page-width="10" page-height="5" duplex="true">
    <default-template>
      <header/>
      <footer/>
    </default-template>
  </layout-master>
  <sequence master="body">
    <block>
      ⠤⠤⠤ ⠤⠤⠤⠤<leader pattern="" position="100%" align="right"/>⠿⠿⠿
    </block>

In the following two examples, there is a space after the leader, but a leader is always kept together with the content after it.

    <block>
      ⠤⠤⠤ ⠤⠤⠤⠤<leader pattern="" position="100%" align="right"/> ⠿⠿⠿
    </block>
    <block>
      ⠤⠤⠤ ⠤⠤⠤<leader pattern="" position="100%" align="right"/> ⠿⠿⠿
    </block>

In this last example, the space before the leader is a non-breaking one.

    <block>
      ⠤⠤⠤ ⠤⠤⠤ <leader pattern="" position="100%" align="right"/> ⠿⠿⠿
    </block>
  </sequence>
</obfl>
@kalaspuffar kalaspuffar transferred this issue from mtmse/dotify.formatter.impl Aug 20, 2021
@kalaspuffar kalaspuffar added bug Something isn't working Medium Prio labels Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Medium Prio
Projects
None yet
Development

No branches or pull requests

2 participants