SjoerdV / ConvertOneNote2MarkDown

Ready to make the step to Markdown and saying farewell to your OneNote, EverNote or whatever proprietary note taking tool you are using? Nothing beats clear text, right? Read on!
GNU General Public License v3.0
196 stars 113 forks source link

[minor bug] duplicate names #15

Closed martinandersen3d closed 2 years ago

martinandersen3d commented 3 years ago

when there is duplicate names, one will override the other.

image

I dont think it needs to be fixed (just an edgecase). Just want to report it.

SjoerdV commented 3 years ago

Hi @martinandersen3d are you sure about that? There is a routine that deals with duplicates in the script by appending '_[number]' to the exported markdown:

              # in case multiple pages with the same name exist in a section, postfix the filename
              if ([System.IO.File]::Exists("$($fullexportpathwithoutextension).md")) {
                $pagename = "$($pagename)_$recurrence"
                $recurrence++
              }
SjoerdV commented 2 years ago

Probably this is now fixed with #23. Could you please verify @martinandersen3d ?