Preview
Issue #3
- Denis
- Pure madness. Why do we need checklist if it's missing such essential things? Why do we need to fix website's markup? Why does mobile clients so bad at copying? So many questions, so few answers...
- Declined by admin
- Declined by admin
- All text in the same div. Separation isn't required in this case
- Type of issue
- IV page is missing essential content
- Reported
- Apr 22, 2019
You can use this
@wrap(<p>): $body//TEXT_CONTAINER/text()[\
(not(preceding-sibling::node()[normalize-space()]) and next-sibling::br[next-sibling::br]) or\
(prev-sibling::br[prev-sibling::br] and next-sibling::br[next-sibling::br]) or\
(prev-sibling::br[prev-sibling::br] and not(following-sibling::node()[normalize-space()]))]
Summary:
<div> will be wrapped to p <br><br> will be wrapped to p <br><br> will be wrapped to p <div>
<div> will be wrapped to p <br><br> This <a>text</a> ignored to not break content <br><br> will be wrapped to p <div>
References:
https://instantview.telegram.org/contest/stroygaz.ru/template8/issue1/
https://instantview.telegram.org/contest/stroygaz.ru/template6/issue1/