I’m going over a long thread I started when I was about to release Library 6/12 (Inform Library 6/12 and Inform 6.33.1 for Unix go beta) and found that Discourse doesn’t seem to like code blocks that are like this:
In english.h, you use (nop) instead of (string), in this case (only string), has it an interest?
[ nop x; x = x; ]; ! print rule to absorb unwanted return value
[ SupportObj obj s1 s2;
if (obj has supporter) print (string) s1;
else print (string) s2;
];
[ PluralObj obj s1 s2 past;
if (player.narrative_tense == PAST_TENSE) {
print (string) past;
return;
}
if (obj has pluralname) print (string) s1;
else print (string) s2;
];
"(getting ", (nop) SupportObj(x1,"off","out of"), (the) x1, ")";
CSubjectCant(actor,true); " since ", (the) x1, " ", (nop) PluralObj(x1,"lead","leads","led"), "nowhere.";
[ SupportObj obj s1 s2;
if (obj has supporter) return s1;
return s2;
];
[ PluralObj obj s1 s2 past;
if (player.narrative_tense == PAST_TENSE) return past;
if (obj has pluralname) return s1;
return s2;
];
"(getting ", (string) SupportObj(x1,"off","out of"), (the) x1, ")";
CSubjectCant(actor,true); " since ", (the) x1, " ", (string) PluralObj(x1,"lead","leads","led"), "nowhere.";
But if I put a blank line above the opening code tag and then a newline before beginning the actual quote code, it looks okay.
In english.h, you use (nop) instead of (string), in this case (only string), has it an interest?
[ nop x; x = x; ]; ! print rule to absorb unwanted return value
[ SupportObj obj s1 s2;
if (obj has supporter) print (string) s1;
else print (string) s2;
];
[ PluralObj obj s1 s2 past;
if (player.narrative_tense == PAST_TENSE) {
print (string) past;
return;
}
if (obj has pluralname) print (string) s1;
else print (string) s2;
];
"(getting ", (nop) SupportObj(x1,"off","out of"), (the) x1, ")";
CSubjectCant(actor,true); " since ", (the) x1, " ", (nop) PluralObj(x1,"lead","leads","led"), "nowhere.";
This chunk is proving a bit more obstinate:
[ SupportObj obj s1 s2;
if (obj has supporter) return s1;
return s2;
];
[ PluralObj obj s1 s2 past;
if (player.narrative_tense == PAST_TENSE) return past;
if (obj has pluralname) return s1;
return s2;
];
"(getting ", (string) SupportObj(x1,"off","out of"), (the) x1, ")";
CSubjectCant(actor,true); " since ", (the) x1, " ", (string) PluralObj(x1,"lead","leads","led"), "nowhere.";