summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {