mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -358,7 +358,7 @@ void ApprDistro::writeD(wxTextOutputStream& tout, const String& name, int c, int
|
||||
|
||||
/// Untag function for apprentice, replaces newlines with \r\n
|
||||
String untag_appr(const String& s) {
|
||||
return replace_all(untag(s), _("\n"), _("\r\n"));
|
||||
return replace_all(untag(curly_quotes(s,false)), _("\n"), _("\r\n"));
|
||||
}
|
||||
|
||||
DECLARE_POINTER_TYPE(ApprCardRecord);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user