summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2022-04-26 16:13:53 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2022-04-29 13:05:05 +0200
commitc0b638bad9f60289d44101fce89c252a26260b69 (patch)
treeaac90321fe6c6bc97913e46339aa06e8cb5dee4d /sw
parent183dd9deec869209c45378ff09f063cc9bf03e26 (diff)
sw: ascii filter: tweak copying of numbering
Add an env var to copy the numbering when selecting a whole paragraph. Change-Id: I4b9025a4a34070d6848b7788a0ca2b0b9ec01d73 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133573 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ascii/ascatr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ascii/ascatr.cxx b/sw/source/filter/ascii/ascatr.cxx
index 805f3ba48bc1..97e98784afc8 100644
--- a/sw/source/filter/ascii/ascatr.cxx
+++ b/sw/source/filter/ascii/ascatr.cxx
@@ -250,7 +250,7 @@ static Writer& OutASC_SwTextNode( Writer& rWrt, SwContentNode& rNode )
if( bLastNd )
nEnd = rWrt.m_pCurrentPam->GetMark()->nContent.GetIndex();
- bool bIsOneParagraph = rWrt.m_pOrigPam->Start()->nNode == rWrt.m_pOrigPam->End()->nNode;
+ bool bIsOneParagraph = rWrt.m_pOrigPam->Start()->nNode == rWrt.m_pOrigPam->End()->nNode && !getenv("SW_ASCII_COPY_NUMBERING");
SwASC_AttrIter aAttrIter( static_cast<SwASCWriter&>(rWrt), rNd, nStrPos );
SwASC_RedlineIter redlineIter(static_cast<SwASCWriter&>(rWrt), rNd);