Improve indent (#28)
* add horizontal indent in first line of paragraph in case Extra Paragraph Spacing is OFF * Treat tabs as whitespace (so they are properly stripped) * Changed size of indent to 1 em. * Fixed calculation of space when indenting (avoiding squeezed text). * Source code formatting
This commit is contained in:
@@ -16,9 +16,11 @@ class ParsedText {
|
||||
std::list<std::string> words;
|
||||
std::list<EpdFontStyle> wordStyles;
|
||||
TextBlock::BLOCK_STYLE style;
|
||||
bool extraParagraphSpacing;
|
||||
|
||||
public:
|
||||
explicit ParsedText(const TextBlock::BLOCK_STYLE style) : style(style) {}
|
||||
explicit ParsedText(const TextBlock::BLOCK_STYLE style, const bool extraParagraphSpacing)
|
||||
: style(style), extraParagraphSpacing(extraParagraphSpacing) {}
|
||||
~ParsedText() = default;
|
||||
|
||||
void addWord(std::string word, EpdFontStyle fontStyle);
|
||||
|
||||
Reference in New Issue
Block a user