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

Allow setting base style to the next match #187

Closed
brechtm opened this issue Oct 15, 2020 · 1 comment
Closed

Allow setting base style to the next match #187

brechtm opened this issue Oct 15, 2020 · 1 comment
Milestone

Comments

@brechtm
Copy link
Owner

brechtm commented Oct 15, 2020

In some situations, it can be useful to create a new style to override a single style attribute. The other style attributes should not be affected by the new style. This can be achieved by setting the base style to the next match. A good example of this is forcing page breaks on arbitrary flowables (#186).

[page-break-paragraph : Flowable(has_class="page-break")]
base = NEXT_MATCH
page_break = any

Additionally, it would be helpful if the style log would also (recursively) list the base styles of the matched style.

@brechtm brechtm added this to the 0.5.0 milestone Oct 15, 2020
@brechtm
Copy link
Owner Author

brechtm commented May 19, 2021

Implemented in 249d783

@brechtm brechtm closed this as completed May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant