Skip to content

[ranges] Do not indent \begin/end{codeblock}. #3572

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

Merged
merged 1 commit into from
Dec 19, 2019
Merged
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
36 changes: 18 additions & 18 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@
valid expression and its type \tcode{I} models
\libconcept{input_or_output_iterator} with overload
resolution performed in a context that includes the declarations:
\begin{codeblock}
\begin{codeblock}
template<class T> void begin(T&&) = delete;
template<class T> void begin(initializer_list<T>&&) = delete;
\end{codeblock}
\end{codeblock}
and does not include a declaration of \tcode{ranges::begin}.

\item
Expand Down Expand Up @@ -389,22 +389,22 @@
Otherwise,
\tcode{\placeholdernc{decay-copy}(t.end())}
if it is a valid expression and its type \tcode{S} models
\begin{codeblock}
\begin{codeblock}
sentinel_for<decltype(ranges::begin(E))>
\end{codeblock}
\end{codeblock}

\item
Otherwise, \tcode{\placeholdernc{decay-copy}(end(t))} if it is a valid
expression and its type \tcode{S} models
\begin{codeblock}
\begin{codeblock}
sentinel_for<decltype(ranges::begin(E))>
\end{codeblock}
\end{codeblock}
with overload
resolution performed in a context that includes the declarations:
\begin{codeblock}
\begin{codeblock}
template<class T> void end(T&&) = delete;
template<class T> void end(initializer_list<T>&&) = delete;
\end{codeblock}
\end{codeblock}
and does not include a declaration of \tcode{ranges::end}.

\item
Expand Down Expand Up @@ -482,9 +482,9 @@
expression and its type \tcode{I} models
\libconcept{input_or_output_iterator} with overload
resolution performed in a context that includes the declaration:
\begin{codeblock}
\begin{codeblock}
template<class T> void rbegin(T&&) = delete;
\end{codeblock}
\end{codeblock}
and does not include a declaration of \tcode{ranges::rbegin}.

\item
Expand Down Expand Up @@ -523,21 +523,21 @@
\item
\tcode{\placeholdernc{decay-copy}(t.rend())}
if it is a valid expression and its type \tcode{S} models
\begin{codeblock}
\begin{codeblock}
sentinel_for<decltype(ranges::rbegin(E))>
\end{codeblock}
\end{codeblock}

\item
Otherwise, \tcode{\placeholdernc{decay-copy}(rend(t))} if it is a valid
expression and its type \tcode{S} models
\begin{codeblock}
\begin{codeblock}
sentinel_for<decltype(ranges::rbegin(E))>
\end{codeblock}
\end{codeblock}
with overload
resolution performed in a context that includes the declaration:
\begin{codeblock}
\begin{codeblock}
template<class T> void rend(T&&) = delete;
\end{codeblock}
\end{codeblock}
and does not include a declaration of \tcode{ranges::rend}.

\item
Expand Down Expand Up @@ -627,9 +627,9 @@
is integer-like
with overload resolution performed in a context that includes
the declaration:
\begin{codeblock}
\begin{codeblock}
template<class T> void size(T&&) = delete;
\end{codeblock}
\end{codeblock}
and does not include a declaration of \tcode{ranges::size}.
\end{itemize}

Expand Down
3 changes: 3 additions & 0 deletions tools/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ grep -ne '\s$' *.tex | sed 's/$/<--- trailing whitespace/' | grep . && exit 1
# Trailing empty lines
for f in *.tex; do [ $(tail -c 2 $f | wc -l) -eq 1 ] || (echo "$f has trailing empty lines"; exit 1 ) done

# indented \begin{codeblock} / \end{codeblock} (causes unwanted empty space)
grep -ne '^.\+\\\(begin\|end\){codeblock}' $texfiles && exit 1

# \pnum not alone on a line.
grep -ne '^.\+\\pnum' $texfiles && exit 1
grep -ne '\\pnum.\+$' $texfiles && exit 1
Expand Down