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

Tab alignment not preserved when other text is on the same line #43

Open
AnyOldName3 opened this issue Jul 3, 2020 · 2 comments
Open

Comments

@AnyOldName3
Copy link

I've got an RTF file with a section resembling this (---> represents a \tab character):

List name:->list entry
--->--->--->list entry
--->--->--->list entry

The HTML produced has a <p> tag with text-indent set on the later list entries, but not on the first one as it shares a line with some other text. This means the first entry isn't aligned with its siblings.

Here's a comparison between the RTF in MS Word and the HTML in Chrome:
Word (¶ on):
image
Word (¶ off):
image

Chrome:
image

@CDarbonne
Copy link

I can confirm that this issue is still present and, in my opinion, a fundamental flaw since tabbing on a line that already contains text is a common use case. Is there any insight into when this might be looked at or what would be needed to get a fix on this?

@erdomke
Copy link
Owner

erdomke commented Jun 17, 2021

The reason that this isn't implemented yet is because I have yet to come up a way to accomplish this with valid HTML and CSS since tab stops are not a thing in CSS. While there might be a creative way to mock the behavior of left-aligned tab stops, there is not a good way to handle center aligned or right aligned tab stops. Things get more complicated when text wraps to the next line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants