Skip to content

[std] Allow linebreaks before \ref in select places #1688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@
\pnum
The name lookup rules apply uniformly to all names (including
\grammarterm{typedef-name}{s}~(\ref{dcl.typedef}),
\grammarterm{namespace-name}{s}~(\ref{basic.namespace}), and
\grammarterm{namespace-name}{s} (\ref{basic.namespace}), and
\grammarterm{class-name}{s}~(\ref{class.name})) wherever the grammar allows
such names in the context discussed by a particular rule. Name lookup
associates the use of a name with a set of declarations~(\ref{basic.def}) of
Expand Down Expand Up @@ -2508,7 +2508,7 @@
\indextext{termination!program}%
Terminating the program
without leaving the current block (e.g., by calling the function
\tcode{std::exit(int)}~(\ref{support.start.term})) does not destroy any
\tcode{std::exit(int)} (\ref{support.start.term})) does not destroy any
objects with automatic storage duration~(\ref{class.dtor}). If
\tcode{std::exit} is called to end a program during the destruction of
an object with static or thread storage duration, the program has undefined
Expand Down
2 changes: 1 addition & 1 deletion source/compatibility.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@
\tcode{<clocale>}~(\ref{c.locales})\indexlibrary{\idxhdr{clocale}},
\tcode{<cstddef>}~(\ref{cstddef.syn})\indexlibrary{\idxhdr{cstddef}},
\tcode{<cstdio>}~(\ref{cstdio.syn})\indexlibrary{\idxhdr{cstdio}},
\tcode{<cstdlib>}~(\ref{cstdlib.syn})\indexlibrary{\idxhdr{cstdlib}},
\tcode{<cstdlib>} (\ref{cstdlib.syn})\indexlibrary{\idxhdr{cstdlib}},
\tcode{<cstring>}~(\ref{cstring.syn})\indexlibrary{\idxhdr{cstring}},
\tcode{<ctime>}~(\ref{ctime.syn})\indexlibrary{\idxhdr{ctime}},
or \tcode{<cwchar>}~(\ref{cwchar.syn})\indexlibrary{\idxhdr{cwchar}},
Expand Down
2 changes: 1 addition & 1 deletion source/conversions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
\pnum
\begin{note}
Function types (including those used in pointer to member function
types) are never cv-qualified~(\ref{dcl.fct}).
types) are never cv-qualified (\ref{dcl.fct}).
\end{note}
\indextext{conversion!qualification|)}

Expand Down
2 changes: 1 addition & 1 deletion source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
\begin{note}
A \grammarterm{nodeclspec-function-declaration} can only be used in a
\grammarterm{template-declaration}~(Clause~\ref{temp}),
\grammarterm{explicit-instantiation}~(\ref{temp.explicit}), or
\grammarterm{explicit-instantiation} (\ref{temp.explicit}), or
\grammarterm{explicit-specialization}~(\ref{temp.expl.spec}).
\end{note}

Expand Down
10 changes: 5 additions & 5 deletions source/iostreams.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@
if
\tcode{rdbuf() != 0}
then
\tcode{rdbuf()->pubimbue(loc)}~(\ref{streambuf.locales}).
\tcode{rdbuf()->pubimbue(loc)} (\ref{streambuf.locales}).

\pnum
\returns
Expand Down Expand Up @@ -3199,7 +3199,7 @@
If a read position is available, returns
\tcode{egptr() - gptr()}.
Otherwise returns
\tcode{showmanyc()}~(\ref{streambuf.virt.get}).
\tcode{showmanyc()} (\ref{streambuf.virt.get}).
\end{itemdescr}

\indexlibrarymember{snextc}{basic_streambuf}%
Expand Down Expand Up @@ -9378,7 +9378,7 @@
otherwise calls
\tcode{setstate(failbit)}
(which may throw
\tcode{ios_base::failure})~(\ref{iostate.flags}).
\tcode{ios_base::failure}) (\ref{iostate.flags}).
\end{itemdescr}

\indexlibrarymember{open}{basic_ifstream}%
Expand Down Expand Up @@ -9626,7 +9626,7 @@
otherwise calls
\tcode{setstate(\brk{}failbit)}
(which may throw
\tcode{ios_base::failure})~(\ref{iostate.flags}).
\tcode{ios_base::failure}) (\ref{iostate.flags}).
\end{itemdescr}

\indexlibrarymember{close}{basic_ofstream}%
Expand Down Expand Up @@ -11464,7 +11464,7 @@

\pnum
Generic format observer functions return strings formatted according to the
generic pathname format~(\ref{fs.path.generic}).
generic pathname format (\ref{fs.path.generic}).
A single slash (\tcode{'/'}) character is used as
the \grammarterm{directory-separator}.

Expand Down
2 changes: 1 addition & 1 deletion source/numerics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@
If bad input is encountered, calls
\tcode{is.setstate(ios_base::failbit)}
(which may throw
\tcode{ios::failure}~(\ref{iostate.flags})).
\tcode{ios::failure} (\ref{iostate.flags})).

\pnum
\returns
Expand Down
2 changes: 1 addition & 1 deletion source/threads.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@
\pnum
\throws
Any exception thrown by \tcode{pm->try_lock()}. \tcode{system_error} when an exception
is required~(\ref{thread.req.exception}).
is required (\ref{thread.req.exception}).

\pnum
\errors
Expand Down
2 changes: 1 addition & 1 deletion source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7661,7 +7661,7 @@
\pnum
\ctype \tcode{Alloc::void_pointer} if
the \grammarterm{qualified-id} \tcode{Alloc::void_pointer} is valid and denotes a
type~(\ref{temp.deduct}); otherwise,
type (\ref{temp.deduct}); otherwise,
\tcode{pointer_traits<pointer>::rebind<\brk{}void>}.
\end{itemdescr}

Expand Down