source/text/sbasic/shared/03120103.xhp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e7aef120d0822836b789a1803fad4553aadc8718
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Fri Sep 26 18:53:59 2025 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Sep 26 20:12:24 2025 +0200

    tdf#168561: fix Str documentation
    
    The space is added to non-negative numbers. Clarify in the text,
    and fix an example (matching the code fix).
    
    Change-Id: I6f522767ba58d42709351b62368d8df869d3b7d7
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/191553
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/source/text/sbasic/shared/03120103.xhp 
b/source/text/sbasic/shared/03120103.xhp
index a354611d08..4f4b1b5ab1 100644
--- a/source/text/sbasic/shared/03120103.xhp
+++ b/source/text/sbasic/shared/03120103.xhp
@@ -32,7 +32,7 @@
     </bookmark>
     <h1 id="hd_id3143272"><variable id="Str_h1"><link 
href="text/sbasic/shared/03120103.xhp">Str Function</link></variable></h1>
     <paragraph id="par_id3155100" role="paragraph">The <literal>Str</literal> 
function converts the contents of variables into a string. It handles numeric 
values, dates, strings and currency values.</paragraph>
-    <paragraph id="par_id3146958" role="paragraph">Positive numbers are 
preceded by a blank space. Negative numbers are preceded by a minus 
sign.</paragraph>
+    <paragraph id="par_id3146958" role="paragraph">Non-negative numbers are 
preceded by a blank space. Negative numbers are preceded by a minus 
sign.</paragraph>
     <note id="par_id331641237252390">For numeric values the string returned by 
the <literal>Str</literal> function is locale-independent. Hence the dot is 
used as the decimal separator when needed.</note>
     <paragraph role="paragraph" id="par_id601641237849695">If a string is 
passed as argument, it is returned without any changes.</paragraph>
     <paragraph role="paragraph" id="par_id231641251937406">Dates are converted 
into locale-dependent strings.</paragraph>
@@ -54,7 +54,7 @@
     <paragraph role="bascode" id="bas_id831641238784987">    ' Note the blank 
space at the beginning of the returned strings</paragraph>
     <paragraph id="par_idm1341438528" role="bascode" localize="false">    
MsgBox Str(10) ' " 10"</paragraph>
     <paragraph id="par_idm1341437296" role="bascode" localize="false">    
MsgBox Str(10.5) ' " 10.5"</paragraph>
-    <paragraph id="par_idm1341436064" role="bascode" localize="false">    
MsgBox Str(-12345 + 1.3) ' " -12346.3"</paragraph>
+    <paragraph id="par_idm1341436064" role="bascode" localize="false">    
MsgBox Str(-12345 + 1.3) ' "-12346.3"</paragraph>
     <paragraph id="par_idm1341434832" role="bascode" localize="false">    
MsgBox Str(10000 / 3) '  " 3333.33333333333"</paragraph>
     <paragraph role="bascode" id="bas_id991641238830710">    ' Strings passed 
as arguments are left unchanged</paragraph>
     <paragraph id="par_idm1341433584" role="bascode" localize="false">    
MsgBox Str("A123") ' "A123"</paragraph>

Reply via email to