I have a document that has something like that:
<div class="item" underline="yes" value="1">
<span class="name" >Something</span>
</div>
<div class="item" value="2">
<span class="name" >Something else</span>
</div>
And a CSS like:
.item {display: inline; }
.item[underline]>.name { text-decoration: underline; }
.item::after { content: "\00a0" attr(score)"; "; }
Expected output (_underline text_, # is unbreakable space):
_Something_#1; Something else#2;
I'm getting:
_Something_ 1; Something else 2;
Which line breaks before the number if it happens to be at the end of the line. I can't move the ::after to the .name element because then it would also be underlined. How can I prevent the lines from breaking or ignore the whitespace (via Prince) the is making the lines break?
<div class="item" underline="yes" value="1">
<span class="name" >Something</span>
</div>
<div class="item" value="2">
<span class="name" >Something else</span>
</div>
And a CSS like:
.item {display: inline; }
.item[underline]>.name { text-decoration: underline; }
.item::after { content: "\00a0" attr(score)"; "; }
Expected output (_underline text_, # is unbreakable space):
_Something_#1; Something else#2;
I'm getting:
_Something_ 1; Something else 2;
Which line breaks before the number if it happens to be at the end of the line. I can't move the ::after to the .name element because then it would also be underlined. How can I prevent the lines from breaking or ignore the whitespace (via Prince) the is making the lines break?
Edited by luizbgomide