Bug 24826 – HTML tags visible in code examples on `std.algorithm.mutation.remove` page

Status
NEW
Severity
normal
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-10-22T03:27:39Z
Last change time
2024-12-15T15:28:35Z
Assigned to
No Owner
Creator
Liam M
Moved to GitHub: dlang.org#4147 →

Attachments

IDFilenameSummaryContent-TypeSize
1921remove - multiple declarations - D Programming Language.htmlThe page in question at the time of this bug report.text/html107407

Comments

Comment #0 by liammcgillivray32 — 2024-10-22T03:27:39Z
Created attachment 1921 The page in question at the time of this bug report. It's an issue with this page here: https://dlang.org/library/std/algorithm/mutation/remove.html A code example on this page shows the following: ``` import std.algorithm.mutation; string[] a = [ "a" </div> Note that <code class="lang-d"><span class="pln">remove</span></code> does not change the length of the original range directly; instead, it returns the shortened range. If its return value is not assigned to the original range, the original range will retain its original length, though its contents will have changed: <div class="runnable-examples"> ``` This code is supposed to be runnable, but clicking on "Run" will of course result in errors. More examples further down the page also have this issue.
Comment #1 by nick — 2024-10-22T16:33:08Z
Comment #2 by robert.schadek — 2024-12-15T15:28:35Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/4147 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB