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

ul li list-style-position seems to be ignored on iOS #965

Closed
richardPFisk opened this issue Apr 20, 2016 · 1 comment
Closed

ul li list-style-position seems to be ignored on iOS #965

richardPFisk opened this issue Apr 20, 2016 · 1 comment

Comments

@richardPFisk
Copy link

richardPFisk commented Apr 20, 2016

With a very simple list, I can't indent the second line so that it is flush with the bullet point. The CSS is obviously applied to the color but I can't control the indentation.

Before I investigate deeply, I was wondering whether any one else had a solution to this problem. I can see that others have at least experienced the same/or similar issue.

let htmlText = "<html><head><style> ul li {  color:green; list-style-type: disc; list-style-position: outside !important; } </style></head><body> <p>Oh, then there is the Perks:</p> <ul><li>blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah </li></ul></body></html>"
let htmlData = htmlText.dataUsingEncoding(NSUTF8StringEncoding)

return NSAttributedString(HTMLData: htmlData, options:[DTUseiOS6Attributes: NSNumber(bool: true)] , documentAttributes: nil)
@richardPFisk
Copy link
Author

This only affects TTTAttributedLabel elements and not UILabel elements.

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

1 participant