tag:support.markedapp.com,2011-09-11:/discussions/problems/50969-the-use-alternate-list-has-duplicates-and-trailing-spacesMarked: Discussion 2014-12-09T20:31:31Ztag:support.markedapp.com,2011-09-11:Comment/339527262014-07-30T00:19:42Z2014-07-30T00:19:42ZThe "Use Alternate" list has duplicates and trailing spaces<div><p>I don't know how you got duplicates, but there aren't any in the
default<br>
file (/Applications/Marked<br>
2/Contents/Resources/defaultAlternateWords.txt).</p>
<p>Trailing whitespace is ignored by Marked, not sure why it's
affecting<br>
your editing.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/339527262014-07-30T04:47:41Z2014-07-30T04:48:09ZThe "Use Alternate" list has duplicates and trailing spaces<div><p>For some reason I'm still ending up with duplicates when I click
"Reset" to restore the original list. It even restores duplicates
for items where I manually deleted both entries, so it doesn't seem
to be merging the defaults with the current contents.</p>
<p>The trailing spaces I'm referring to are in the "Use Alternate"
phrase list, not in my actual documents. Most of the entries in
that list (at least for me) have an extra space at the end.</p></div>jasontag:support.markedapp.com,2011-09-11:Comment/339527262014-07-30T06:42:40Z2014-07-30T06:42:40ZThe "Use Alternate" list has duplicates and trailing spaces<div><p>Try deleting everything in the box and then restoring, let me
know if it<br>
still causes duplicates.</p>
<p>I see the whitespace, I'm still trying to understand how it's
affecting<br>
you.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/339527262014-07-31T15:34:03Z2014-07-31T15:34:03ZThe "Use Alternate" list has duplicates and trailing spaces<div><p>So I had a look at the defaultAlternateWords.txt file, and it
does in fact contain duplicates, and it turns out it's related to
the trailing whitespace. A simple de-dupe won't catch them, because
in each case there's one line with — and one without —
trailing whitespace.</p>
<p>I copied the whole list into BBEdit, removed trailing whitespace
(it does this automatically whenever I save a file), then did "Kill
Duplicates", and now the list is clean.</p>
<p>Neither of these things is a problem. This is more of a bug
report than a support request.</p></div>jasontag:support.markedapp.com,2011-09-11:Comment/339527262014-07-31T18:16:12Z2014-07-31T18:16:12ZThe "Use Alternate" list has duplicates and trailing spaces<div><p>Thanks, I guess <code>sort -u</code> was failing me because of
the whitespace. I'll<br>
clean it up for the next update.</p>
<p>-Brett</p></div>Brett