diff options
author | Kurt Jung <kurt.w.jung@gmail.com> | 2015-10-12 13:54:31 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2015-10-12 13:54:31 -0400 |
commit | 6ace63ba791e90e7886afd7ac7ff5c0315798f32 (patch) | |
tree | cb6d3e87787e7520e50eedfa730b167f3be9c2d3 | |
parent | 0e7f14245b3a89fe3e1aa59814b080b65b58ee08 (diff) | |
parent | 26baf7d305543d6afe39d38f0b2c30054c9fa4e3 (diff) |
Merge branch 'master' into compare-reference-pdf
-rw-r--r-- | htmlbasic.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/htmlbasic.go b/htmlbasic.go index 6998128..ee3be7d 100644 --- a/htmlbasic.go +++ b/htmlbasic.go @@ -169,7 +169,11 @@ func (html *HTMLBasicType) Write(lineHt float64, htmlStr string) { putLink(hrefStr, el.Str) hrefStr = "" } else { - html.pdf.WriteAligned(0, lineHt, el.Str, alignStr) + if alignStr == "C" { + html.pdf.WriteAligned(0, lineHt, el.Str, alignStr) + } else { + html.pdf.Write(lineHt, el.Str) + } } case 'O': switch el.Str { |