Skip to content

Commit 9c73151

Browse files
Aryan GhAryan Gh
authored andcommitted
- Fixed the problem with generating html with first-line-indent
1 parent 88399e2 commit 9c73151

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

RichTextEditor/Source/Categories/NSAttributedString+RichTextEditor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ - (NSString *)htmlString
111111
[htmlString appendFormat:@"style=\""];
112112

113113
if (paragraphStyle.firstLineHeadIndent > 0)
114-
[htmlString appendFormat:@"text-indent:%.0fpx; ", paragraphStyle.firstLineHeadIndent];
114+
[htmlString appendFormat:@"text-indent:%.0fpx; ", paragraphStyle.firstLineHeadIndent - paragraphStyle.headIndent];
115115

116116
if (paragraphStyle.headIndent > 0)
117117
[htmlString appendFormat:@"margin-left:%.0fpx; ", paragraphStyle.headIndent];

0 commit comments

Comments
 (0)