MultiMarkdown Composer causing sync roundtrip issues

Found a bug? Just having trouble getting Trunk to do what you want? Want to help other users?

MultiMarkdown Composer causing sync roundtrip issues

Postby psidnell » Wed Jan 11, 2012 10:17 pm

Hi (first post: love the app!)

One of the reasons I chose Trunk was that it stored its files as plaintext/markdown in dropbox
giving me the chance to edit files from the desktop and/or iPad/iPhone - whatever I have available.

And it works (as long as I leave the metadata alone). I've used vi and TextEdit from Linux and OSX
without any issues. Flushed with success I bought MultiMarkdown Composer (MMDC) - a "proper"
and rather nice markdown editor and immediately ran into some problems with sync.

After some experimentation I boiled it down to this:
1. Create note "ABC" (v1) in Trunk and sync.
2. Edit "ABC" (now v2) in MMDC from the Mac and sync.
3. I see trunk downloading "ABC" (v2)
4. I look at all the notes in Trunk and I see a duplicate file:
"ABC" (v1)
" ABC" (v2) - the second version has some spaces on the front of the file name.
5. Things are now broken but if I sync Trunk again " ABC" (v2) is pushed up to dropbox and I have dupes everywhere.

What I think is happening is that MMDC is reformatting the metadata at the top of the Trunk
note. It's not overtly corrupting it but is messing with the tabbing/spacing after the colon
in each metadata field.

My hypothesis is that this confuses Trunk into thinking it's got a new note (from the
metadata title) - one with spaces on the front of the text, typically 2.

There are some obtuse options in MMDC to change how it (but not stop it) modifying
the metadata:

"tabs are 4 spaces" == off
"align metadata with tabs" == off

I don't know if both options are required but this seems to be enough to stop the
problem (once you've flushed away all the broken files from ALL devices).

Anyway, I'm not sure whose problem it is - but this seems to be a fix.
psidnell
 
Posts: 17
Joined: Wed Jan 11, 2012 9:46 pm

Re: MultiMarkdown Composer causing sync roundtrip issues

Postby reder » Mon Mar 05, 2012 3:14 am

Thanks for sharing this. I met the same problem and now I knew why.
reder
 
Posts: 6
Joined: Thu Jan 19, 2012 11:36 pm


Return to Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron