Skip to content

Commit 31bd793

Browse files
committed
Change label= to marker= on <ol>.
1 parent a7775ae commit 31bd793

27 files changed

Lines changed: 36 additions & 87 deletions

pretext/Debugging/HowtoAvoidDebugging.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<title>How to Avoid Debugging</title>
44
<p>Perhaps the most important lesson in debugging is that it is <term>largely avoidable</term> &#x2013; if you work carefully.</p>
55
<p>
6-
<ol label="1">
6+
<ol marker="1">
77
<li>
88
<p><term>Understand the Problem</term> You must have a firm grasp on <term>what</term> you are trying to accomplish but not
99
necessarily <term>how</term> to do it. You do not need to understand the entire problem. But you must understand

pretext/Debugging/KnowyourerrorMessages.ptx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ print(time_when_alarm_go_off)
349349
</hint>
350350
<p><term>Finding Clues</term> With name errors one of the best things you can do is use the editor, or browser search function. Quite often if you search for the exact word in the error message one of two things will happen:</p>
351351
<p>
352-
<ol label="1">
352+
<ol marker="1">
353353
<li>
354354
<p>The word you are searching for will appear only once in your code, it's also likely that it will be on the right hand side of an assignment statement, or as a parameter to a function. That should confirm for you that you have a typo somewhere. If the name in question <term>is</term> what you thought it should be then you probably have a typo on the left hand side of an assignment statement on a line before your error message occurs. Start looking backward at your assignment statements. In some cases it's really nice to leave all the highlighted strings from the search function visible as they will help you very quickly find a line where you might have expected your variable to be highlighted.</p>
355355
</li>
@@ -390,7 +390,7 @@ print(alarm_time)
390390
<title>Solution</title>
391391
<p>In this example the error message is about <c>set_time</c> not defined on line 3. In this case the undefined name is not used in an assignment statement, but is used as a parameter (incorrectly) to a function call. A search on <c>set_time</c> reveals that in fact it is only used once in the program. Did the author mean <c>set_alarm</c>? If we make that assumption we immediately get another error <c>NameError: name 'alarm_time' is not defined on line: 3</c>. The variable <c>alarm_time</c> is defined on line 4, but that does not help us on line 3. Furthermore we now have to ask the question is this function call <c>int(present_time, set_alarm, alarm_time)</c> even the correct use of the <c>int</c> function? The answer to that is a resounding no. Let's list all of the things wrong with line 3:</p>
392392
<p>
393-
<ol label="1">
393+
<ol marker="1">
394394
<li>
395395
<p><c>set_time</c> is not defined and never used, the author probably meant <c>set_alarm</c>.</p>
396396
</li>

pretext/Dictionaries/Exercises.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ for char in sorted(keys):
5959
<p>Give the Python interpreter's response to each of the following from a
6060
continuous interpreter session:</p>
6161
<p>
62-
<ol label="a">
62+
<ol marker="a">
6363
<li>
6464
<program language="python">
6565
<input>

pretext/Functions/Functionscancallotherfunctions.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ wn.exitonclick()
139139
new functions. Actually, there are a lot of reasons, but this example
140140
demonstrates two:</p>
141141
<p>
142-
<ol label="1">
142+
<ol marker="1">
143143
<li>
144144
<p>Creating a new function gives you an opportunity to name a group of
145145
statements. Functions can simplify a program by hiding a complex computation

pretext/Functions/ProgramDevelopment.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ test.testEqual(distance(0,0, 1,1), 1.41)
131131
to chunk music &#x2014; from indvidual notes to chords, bars, phrases, and so on.</p>
132132
<p>The key aspects of the process are:</p>
133133
<p>
134-
<ol label="1">
134+
<ol marker="1">
135135
<li>
136136
<p>Make sure you know what you are trying to accomplish. Then you can write appropriate unit tests.</p>
137137
</li>

pretext/Functions/functions.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def name( parameters ):
2323
several <term>compound statements</term> we will see, all of which have the same
2424
pattern:</p>
2525
<p>
26-
<ol label="1">
26+
<ol marker="1">
2727
<li>
2828
<p>A header line which begins with a keyword and ends with a colon.</p>
2929
</li>

pretext/GUIandEventDrivenProgramming/11_gui_program_example.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
developed. For a typical GUI program development, you are encouraged to go
1212
through these stages:</p>
1313
<p>
14-
<ol label="1">
14+
<ol marker="1">
1515
<li>
1616
<p>Using scratch paper, physically draw a rough sketch of your user interface.</p>
1717
</li>

pretext/IntroRecursion/ConvertinganIntegertoaStringinAnyBase.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<p>Knowing what our base is suggests that the overall algorithm will
2020
involve three components:</p>
2121
<p>
22-
<ol label="1">
22+
<ol marker="1">
2323
<li>
2424
<p>Reduce the original number to a series of single-digit numbers.</p>
2525
</li>

pretext/IntroRecursion/TheThreeLawsofRecursion.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p>Like the robots of Asimov, all recursive algorithms must obey three
55
important laws:</p>
66
<p>
7-
<ol label="1">
7+
<ol marker="1">
88
<li>
99
<p>A recursive algorithm must have a <term>base case</term>.</p>
1010
</li>

pretext/Lists/Exercises.ptx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ print(myList)
5656
<statement>
5757
<p>Starting with the list of the previous exercise, write Python statements to do the following:</p>
5858
<p>
59-
<ol label="a">
59+
<ol marker="a">
6060
<li>
6161
<p>Append <q>apple</q> and 76 to the list.</p>
6262
</li>
@@ -366,7 +366,7 @@ def count(lst):
366366
<statement>
367367
<p>Although Python provides us with many list methods, it is good practice and very instructive to think about how they are implemented. Implement a Python function that works like the following:</p>
368368
<p>
369-
<ol label="a">
369+
<ol marker="a">
370370
<li>
371371
<p>count</p>
372372
</li>

0 commit comments

Comments
 (0)