Skip to content

Commit 937a646

Browse files
author
Release Manager
committedFeb 3, 2025
sagemathgh-39186: Remove backslash hack in doctest Would fix sagemath#39058 . I think it's cleaner to remove this thing anyway (given that it doesn't work in the real Sage command prompt either) ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39186 Reported by: user202729 Reviewer(s): Tobias Diez
2 parents 20ac004 + 0ed925b commit 937a646

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+334
-367
lines changed
 

‎src/doc/en/developer/coding_basics.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -1114,12 +1114,10 @@ written.
11141114
The :ref:`doctest fixer <section-fixdoctests-optional-needs>` uses
11151115
tab stops at columns 48, 56, 64, ... for these tags.
11161116

1117-
- **Split long lines:** You may want to split long lines of code with a
1118-
backslash. Note: this syntax is non-standard and may be removed in the
1119-
future::
1117+
- **Split long lines:** Standard Python rules apply. For example::
11201118

1121-
sage: n = 123456789123456789123456789\
1122-
....: 123456789123456789123456789
1119+
sage: n = (123456789123456789123456789 +
1120+
....: 123456789123456789123456789)
11231121
sage: n.is_prime()
11241122
False
11251123

‎src/doc/en/thematic_tutorials/lie/branching_rules.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ we could accomplish the branching in two steps, thus::
344344
sage: A1xA1 = WeylCharacterRing("A1xA1", style="coroots")
345345
sage: reps = [A3(fw) for fw in A3.fundamental_weights()]
346346
sage: [pi.branch(C2, rule="symmetric").branch(B2, rule="isomorphic"). \
347-
branch(D2, rule="extended").branch(A1xA1, rule="isomorphic") for pi in reps]
347+
....: branch(D2, rule="extended").branch(A1xA1, rule="isomorphic") for pi in reps]
348348
[A1xA1(1,0) + A1xA1(0,1), 2*A1xA1(0,0) + A1xA1(1,1), A1xA1(1,0) + A1xA1(0,1)]
349349

350350
As you can see, we've redone the branching rather circuitously this

0 commit comments

Comments
 (0)