-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
rendertiddlers command doesn't work correctly on wiki files ending in .htm #700
Comments
Hi @dullroar thanks for the report. I'm afraid it is as simple as the file extension mechanism currently only recognising a full |
That's a bummer. Just spent some time hacking around in the boot tasks and couldn't get these hacks to work:
Ah, well, looks like I will have to study the code harder, when I am not at work. :) |
Ha! It turns out that there is a quick workaround, see c738532 |
Oops sorry @dullroar I just noticed that your second suggestion is the same as what I'd done - it works for me, does it not work for you? |
It is not, @Jermolene (and I just compared your code and mine side-by-side, which was identical, and then even copied and pasted your code in to make sure - same results). Would it be because I am hacking a downloaded 5.0.13beta .htm file directly and not doing some sort of build process and hence perhaps missing some other changes that is allowing it to work for you? Either way, I feel happy that I was on the right track! |
Hi @dullroar yes I'd recommend building the source as described in http://tiddlywiki.com/#Working%20with%20the%20TiddlyWiki5%20repository Anyhow, I've posted a prerelease to http://tw5test.tiddlyspot.com/ for you to check. |
I was able to build the source and confirm it now works. Thanks. I am closing this issue. |
The following is an issue even with an empty TiddlyWiki template file downloaded from tiddlywiki.com. I have been testing it on Windows 8.1 using TW 5.0.13beta and node v0.10.29.
If the TW file is saved with a suffix of .htm (such as mylife.htm) then running the following command (adapted from this post - #168) produces incorrect output:
The output that is produced is this:
In other words, the entire TW is reproduced in a single mylife.htm.html file.
If I change the file name to mylife.html (simply adding an "l" to the file suffix), and change the --load command to read in mylife.html, then the output produced is structured as I would expect, like this:
Each non-system tiddler is now broken out as its own HTML file under the static directory as I would expect.
I have looked in the rendertiddlers source but not too deeply yet, so at this point I am filing the bug (at least _I_ think it is a bug) to get it documented before delving into determining the cause.
The text was updated successfully, but these errors were encountered: