-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output to HTML string omit header / footer #502
Comments
Did you try setting headerFooter(true) ?
|
Thanks, setting |
I think these are sensible defaults for the different functions: Please note that this behavior originates from Asciidoctor core and is not a special change in AsciidoctorJ: https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor.rb#L1443 Cheers |
I was assuming this to be the rationale. However, in my use case I wanted to post-process the output file, and instead of reading its contents back into a string to do so, I wanted to use an output string directly, and was confused by the output not being the same when writing to a file. While I do not disagree to the current behavior per se, I do think it at least deserves some documentation, also on the AsciidoctorJ side. |
We're happily accepting Pull Requests:) Am Freitag, 19. August 2016 schrieb Sebastian Schuberth :
|
Just to followup, @sschuberth has submitted the following PR to clarify the API documentation. #503 |
@mojavelinux That's why I've linked my PR via a commit message to this issue ... |
Thanks. I added the comment because GitHub doesn't send that link out via e-mail. To someone observing via e-mail it looks like the thread just dies, so I follow the practice of adding a wrap-up comment. |
I'm using AsciidoctorJ 1.5.4.1 and recently switched from calling
convertFile
withto calling it with
I.e. I simply switch to outputting to a
String
instead an output file. While investigating the HTML output String I noticed it lack the HTML header / footer, meaning there is no<!DOCTYPE html>
and<head></head>
tag in there, and no<div id="footer-text">
etc. in the end. I don"t believe this is expected as I did not see that behavior documented anywhere.The text was updated successfully, but these errors were encountered: