Skip to content

Commit

Permalink
A few message/line length tidies
Browse files Browse the repository at this point in the history
git-svn-id: http://www.latex-project.org/svnroot/experimental/trunk@4689 de43f980-851b-0410-b2f7-c40aca1f87e0
  • Loading branch information
joseph committed Apr 13, 2014
1 parent b5ab90c commit e7f5173
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion l3packages/xparse/testfiles/xparse001.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ l.41 }
|'''''''''''''''''''''''''''''''''''''''''''''''
| You have used \NewDocumentCommand with a command that already has a
| definition.
| The existing definition of '\foo' will be overwritten.
| The existing definition of '\foo' will not be altered.
|...............................................
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
Expand Down
31 changes: 19 additions & 12 deletions l3packages/xparse/xparse.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%% David Carlisle
%% (C) Copyright 2004-2008 Frank Mittelbach,
%% The LaTeX3 Project
%% (C) Copyright 2009-2013 The LaTeX3 Project
%% (C) Copyright 2009-2014 The LaTeX3 Project
%%
%% It may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this
Expand Down Expand Up @@ -1669,12 +1669,14 @@
% \begin{macrocode}
\cs_new_protected_nopar:Npn \@@_add_expandable_type_g:w
{
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type } { g }
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type }
{ g }
\@@_add_expandable_type_m:w
}
\cs_new_protected_nopar:Npn \@@_add_expandable_type_G:w #1
{
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type } { G }
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type }
{ G }
\@@_add_expandable_type_m:w
}
% \end{macrocode}
Expand All @@ -1687,7 +1689,8 @@
% \begin{macrocode}
\cs_new_protected_nopar:Npn \@@_add_expandable_type_l:w
{
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type } { l }
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type }
{ l }
\@@_add_expandable_type_m:w
}
% \end{macrocode}
Expand Down Expand Up @@ -1761,7 +1764,8 @@
% \begin{macrocode}
\cs_new_protected_nopar:Npn \@@_add_expandable_type_u:w #1
{
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type } { u }
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type }
{ u }
\@@_add_expandable_type_m:w
}
% \end{macrocode}
Expand All @@ -1772,7 +1776,8 @@
% \begin{macrocode}
\cs_new_protected_nopar:Npn \@@_add_expandable_type_v:w
{
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type } { v }
\__msg_kernel_error:nnx { xparse } { invalid-expandable-argument-type }
{ v }
\@@_add_expandable_type_m:w
}
% \end{macrocode}
Expand Down Expand Up @@ -3151,20 +3156,20 @@
{
You~have~used~\NewDocumentCommand
with~a~command~that~already~has~a~definition. \\
The~existing~definition~of~'#1'~will~be~overwritten.
The~existing~definition~of~'#1'~will~not~be~altered.
}
\__msg_kernel_new:nnnn { xparse } { command-not-yet-defined }
{ Command ~'#1'~not~yet~defined! }
{
You~have~used~\RenewDocumentCommand
with~a~command~that~was~never~defined.\\
with~a~command~that~was~never~defined. \\
A~new~command~'#1'~will~be~created.
}
\__msg_kernel_new:nnnn { xparse } { environment-already-defined }
{ Environment~'#1'~already~defined! }
{
You~have~used~\NewDocumentEnvironment
with~an~environment~that~already~has~a~definition.\\
with~an~environment~that~already~has~a~definition. \\
The~existing~definition~of~'#1'~will~be~overwritten.
}
\__msg_kernel_new:nnnn { xparse } { environment-mismatch }
Expand All @@ -3177,18 +3182,20 @@
{ Environment~'#1'~not~yet~defined! }
{
You~have~used~\RenewDocumentEnvironment
with~an~environment~that~was~never~defined.\\
with~an~environment~that~was~never~defined. \\
A~new~environment~'#1'~will~be~created.
}
\__msg_kernel_new:nnnn { xparse } { environment-unknown }
{ Environment~'#1'~undefined. }
{
You~have~tried~to~start~an~environment~called~'#1',~
but~this~has~never~been~defined.\\
but~this~has~never~been~defined. \\
The~command~will~be~ignored.
}
\__msg_kernel_new:nnnn { xparse } { expandable-ending-optional }
{ Argument~specification~for~expandable~command~ends~with~optional~argument. }
{
Argument~specification~for~expandable~command~ends~with~optional~argument.
}
{
\c_msg_coding_error_text_tl
Expandable~commands~must~have~a~final~mandatory~argument~
Expand Down

0 comments on commit e7f5173

Please sign in to comment.