Fix more of the text output code (paren handling).

Update unit tests to write lines from README.md.
This commit is contained in:
Michael R Sweet
2021-05-31 21:34:53 -04:00
parent 05df5919cd
commit cc250e7201
2 changed files with 19 additions and 12 deletions

View File

@@ -987,8 +987,20 @@ write_text(pdfio_file_t *pdf, // I - PDF file
else
return (1);
fputs("pdfioContentTextMoveTo(550.0, 36.0): ", stdout);
if (pdfioContentTextMoveTo(st, 550.0, 36.0))
fputs("pdfioContentTextMoveTo(36.0, 36.0): ", stdout);
if (pdfioContentTextMoveTo(st, 36, 36.0))
puts("PASS");
else
return (1);
printf("pdfioContentTextShowf(\"\\\"%s\\\"\"): ", filename);
if (pdfioContentTextShowf(st, "\"%s\"", filename))
puts("PASS");
else
return (1);
fputs("pdfioContentTextMoveTo(514.0, 0.0): ", stdout);
if (pdfioContentTextMoveTo(st, 514.0, 0.0))
puts("PASS");
else
return (1);
@@ -1026,8 +1038,8 @@ write_text(pdfio_file_t *pdf, // I - PDF file
else
return (1);
fputs("pdfioContentTextMoveTo(36.0, 746.0): ", stdout);
if (pdfioContentTextMoveTo(st, 36.0, 746.0))
fputs("pdfioContentTextMoveTo(36.0, 756.0): ", stdout);
if (pdfioContentTextMoveTo(st, 36.0, 756.0))
puts("PASS");
else
return (1);