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

EZP-30861: Handled line breaks inside headings #141

Merged
merged 2 commits into from
Apr 27, 2020

Conversation

konradoboza
Copy link
Member

Question Answer
JIRA issue EZP-30861
Bug/Improvement yes
New feature no
Target version 1.1, 2.0, master
BC breaks no
Tests pass yes
Doc needed no

Currently, there is another inconsistent scenario when line breaks appear inside headings (<h1> - <h6>). As literallayout tag responsible for correctly displaying breaklines cannot be placed inside <title> tag (according to DocBook schema), I adjusted docbook.rng to reflect this case. As db.all.inlines rules are used in many places, I decided to add literallayout only to title element to avoid potential issues. XSL logic is basically about reusing existing rules for the paragraph - we don't want to add literallayout to title when there are no line breaks, so those scenarios are left untouched.

TODO:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

@konradoboza konradoboza added Bug Something isn't working Ready for review labels Apr 17, 2020
@konradoboza konradoboza self-assigned this Apr 17, 2020
…eparated breakline templates depending on the use-case
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review ping @adamwojs

@konradoboza konradoboza requested review from andrerom and adamwojs and removed request for adamwojs April 27, 2020 06:05
@konradoboza konradoboza removed their assignment Apr 27, 2020
@lserwatka lserwatka merged commit ded96cb into 1.1 Apr 27, 2020
@lserwatka lserwatka deleted the EZP-30861-breaklines_in_titles branch April 27, 2020 12:14
@lserwatka
Copy link
Member

Could you merge it up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working QA approved
Development

Successfully merging this pull request may close these issues.

5 participants