From 1eaa807bbfb39654a4a7a2a6d2e20efc2cefa44b Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 3 Aug 2022 01:50:11 -0400 Subject: [PATCH] clarification on what constituets single, double, and triple quotes. --- doc/src/Commands_parse.rst | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/doc/src/Commands_parse.rst b/doc/src/Commands_parse.rst index 497bc9e5d3..f6aa859ac2 100644 --- a/doc/src/Commands_parse.rst +++ b/doc/src/Commands_parse.rst @@ -123,14 +123,15 @@ LAMMPS: .. _six: 6. If you want text with spaces to be treated as a single argument, it - can be enclosed in either single or double or triple quotes. A long - single argument enclosed in single or double quotes can span multiple - lines if the "&" character is used, as described above. When the - lines are concatenated together (and the "&" characters and line - breaks removed), the text will become a single line. If you want - multiple lines of an argument to retain their line breaks, the text - can be enclosed in triple quotes, in which case "&" characters are - not needed. For example: + can be enclosed in either single (') or double (") or triple (""") + quotes. A long single argument enclosed in single or double quotes + can span multiple lines if the "&" character is used, as described + in :ref:`1 ` above. When the lines are concatenated together + by LAMMPS (and the "&" characters and line breaks removed), the + combined text will become a single line. If you want multiple lines + of an argument to retain their line breaks, the text can be enclosed + in triple quotes, in which case "&" characters are not needed and do + not function as line continuation character. For example: .. code-block:: LAMMPS @@ -144,8 +145,9 @@ LAMMPS: System temperature = $t """ - In each case, the single, double, or triple quotes are removed when - the single argument they enclose is stored internally. + In each of these cases, the single, double, or triple quotes are + removed and the enclosed text stored internally as a single + argument. See the :doc:`dump modify format `, :doc:`print `, :doc:`if `, and :doc:`python ` commands for