vimwiki-backup / vimwiki

Automatically exported from code.google.com/p/vimwiki
1 stars 1 forks source link

Diary html generates wrong link code #295

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate a diary entry and run the html generate command on the index page

What is the expected output? What do you see instead?
I'd expect to see a link like:
file:///home/firecat53/.local/share/vimwiki/vimwiki_html/diary/2012-03-21.html

Instead it adds an extra 'diary' into the link like:
file:///home/firecat53/.local/share/vimwiki/vimwiki_html/diary/diary/2012-03-21.
html

What version of the product are you using? On what operating system?
Dev version 497 on linux.

In my .vimrc I have set: "let wiki.diary_rel_path = 'diary/'"
My directory tree looks like:

index.wiki
diary/ ->
    diary.wiki
    2012-03-21.wiki
vimwiki_html/ ->
    index.html
    diary/ ->
        diary.html
        2012-03-21.html

Thanks!
Scott

Original issue reported on code.google.com by firecat4...@gmail.com on 21 Mar 2012 at 11:53

GoogleCodeExporter commented 9 years ago
Thanks for noticing this one.  Should be fixed as of r21869af0d2fb

Original comment by stu.andrews on 22 Mar 2012 at 4:39

GoogleCodeExporter commented 9 years ago
What was it? Regression?

Original comment by habamax on 22 Mar 2012 at 4:41

GoogleCodeExporter commented 9 years ago
The error cropped up in resolve_scheme(), and wasn't covered by our testing 
framework until Tomas's recent additions ... plus there was a bug in the 
testing framework !

Original comment by stu.andrews on 22 Mar 2012 at 5:11