sw/source/filter/ascii/ascatr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c0b638bad9f60289d44101fce89c252a26260b69 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Tue Apr 26 16:13:53 2022 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Fri Apr 29 13:05:05 2022 +0200 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.st...@allotropia.de> 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);