Skip to content

Commit

Permalink
Fix for Jira bug I7-2085
Browse files Browse the repository at this point in the history
  • Loading branch information
ganelson committed May 7, 2022
1 parent 9e8c3c9 commit d8de2ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion inform7/Internal/HTML/xrefs.txt
Expand Up @@ -33,7 +33,7 @@ ph_defaultvalue _ doc62 "4.11" "4.11. Default values of kinds"
PM_EmptyKind VARIABLES var_location _ doc63 "4.12" "4.12. Values that vary"
PM_TooManyDuplicates _ doc65 "4.14" "4.14. Duplicates"
PM_ComplexEvery PM_AssemblyRegress PM_AssemblyLoop _ doc66 "4.15" "4.15. Assemblies and body parts"
PM_TSWithPunctuation PM_TSWithComma _ doc69 "5.1" "5.1. Text with substitutions"
PM_TSWithPunctuation _ doc69 "5.1" "5.1. Text with substitutions"
phs_bracket phs_closebracket phs_apostrophe phs_quotemark _ doc70 "5.2" "5.2. How Inform reads quoted text"
ph_say phs_a phs_A phs_the phs_The _ doc71 "5.3" "5.3. Text which names things"
phs_numwords phs_s _ doc72 "5.4" "5.4. Text with numbers"
Expand Down
18 changes: 7 additions & 11 deletions inter/final-module/Chapter 4/Inform 6 Code.w
Expand Up @@ -704,17 +704,13 @@ a constant 1, 2 or 3, or else plain roman is all you get.
break;
case STYLE_BIP: {
inter_tree_node *N = InterTree::first_child(P);
if ((Inode::is(N, CONSTANT_IST)) &&
(ConstantInstruction::list_format(N) == CONST_LIST_FORMAT_NONE)) {
inter_ti style = InterValuePairs::to_number(ConstantInstruction::constant(N));
switch (style) {
case 1: WRITE("style bold"); break;
case 2: WRITE("style underline"); break;
case 3: WRITE("style reverse"); break;
default: WRITE("style roman");
}
} else {
WRITE("style roman");
inter_pair pair = ValInstruction::value(N);
inter_ti style = InterValuePairs::to_number(pair);
switch (style) {
case 1: WRITE("style bold"); break;
case 2: WRITE("style underline"); break;
case 3: WRITE("style reverse"); break;
default: WRITE("style roman");
}
break;
}
Expand Down

0 comments on commit d8de2ba

Please sign in to comment.