summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@gmail.com>2015-10-12 13:54:31 -0400
committerKurt Jung <kurt.w.jung@gmail.com>2015-10-12 13:54:31 -0400
commit6ace63ba791e90e7886afd7ac7ff5c0315798f32 (patch)
treecb6d3e87787e7520e50eedfa730b167f3be9c2d3
parent0e7f14245b3a89fe3e1aa59814b080b65b58ee08 (diff)
parent26baf7d305543d6afe39d38f0b2c30054c9fa4e3 (diff)
Merge branch 'master' into compare-reference-pdf
-rw-r--r--htmlbasic.go6
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 {