Remove curly quotes for MWS and apprentice export

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1038 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-02 20:43:45 +00:00
parent de0817099a
commit 76d2eb7d42
5 changed files with 31 additions and 18 deletions
+3 -1
View File
@@ -23,7 +23,8 @@ DECLARE_TYPEOF_COLLECTION(CardP);
/// Convert a tagged string to MWS format: \t\t before each line beyond the first
String untag_mws(const String& str) {
return replace_all(untag(str), _("\n"), _("\n\t\t") );
// TODO : em dashes?
return replace_all(untag(curly_quotes(str,false)), _("\n"), _("\n\t\t") );
}
//String untag_mws(const Defaultable<String>& str) {
// str.
@@ -36,6 +37,7 @@ String card_color_mws(const String& col) {
if (col == _("black")) return _("B");
if (col == _("red")) return _("R");
if (col == _("green")) return _("G");
if (col == _("artifact")) return _("Art");
if (col == _("colorless")) return _("Art");
if (col.find(_("land")) != String::npos) {
return _("Lnd"); // land