Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
869963a2
Kaydet (Commit)
869963a2
authored
Kas 28, 2000
tarafından
Nils Fuhrmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix: Merging now possible, needed for #80592#
üst
73c7f91a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
cfgmerge.cxx
transex3/source/cfgmerge.cxx
+30
-7
No files found.
transex3/source/cfgmerge.cxx
Dosyayı görüntüle @
869963a2
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: cfgmerge.cxx,v $
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
* last change: $Author: nf $ $Date: 2000-11-2
2 13:56:02
$
* last change: $Author: nf $ $Date: 2000-11-2
8 14:53:39
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -373,6 +373,9 @@ int CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken )
{
ByteString
sToken
(
pToken
);
if
(
sToken
==
" "
||
sToken
==
"
\t
"
)
sLastWhitespace
+=
sToken
;
ByteString
sTokenName
;
ByteString
sTokenId
;
...
...
@@ -427,7 +430,8 @@ int CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken )
case
CFG_CLOSETAG
:
sTokenName
=
sToken
.
GetToken
(
1
,
'/'
).
GetToken
(
0
,
'>'
).
GetToken
(
0
,
' '
);
if
(
aStack
.
GetStackData
()
&&
(
aStack
.
GetStackData
()
->
GetTagType
()
==
sTokenName
))
{
WorkOnRessourceEnd
();
if
(
!
sCurrentText
.
Len
())
WorkOnRessourceEnd
();
aStack
.
Pop
();
pStackData
=
aStack
.
GetStackData
();
}
...
...
@@ -454,6 +458,9 @@ int CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken )
if
(
bOutput
)
Output
(
sToken
);
if
(
sToken
!=
" "
&&
sToken
!=
"
\t
"
)
sLastWhitespace
=
""
;
return
1
;
}
...
...
@@ -721,14 +728,30 @@ void CfgMerge::WorkOnRessourceEnd()
Export
::
QuotHTML
(
sText
);
ByteString
sAdditionalLine
;
for
(
ULONG
i
=
0
;
i
<
aStack
.
Count
()
-
1
;
i
++
)
sAdditionalLine
+=
"
\t
"
;
ByteString
sAdditionalLine
(
"
\t
"
);
ByteString
sTextTag
=
pStackData
->
sTextTag
;
ByteString
sTemp
=
sTextTag
.
Copy
(
sTextTag
.
Search
(
"xml:lang="
));
ByteString
sSearch
=
sTemp
.
GetToken
(
0
,
'\"'
);
sSearch
+=
"
\"
"
;
sSearch
+=
sTemp
.
GetToken
(
1
,
'\"'
);
sSearch
+=
"
\"
"
;
sAdditionalLine
+=
pStackData
->
sTextTag
;
ByteString
sReplace
=
sTemp
.
GetToken
(
0
,
'\"'
);
sReplace
+=
"
\"
"
;
sReplace
+=
Export
::
GetIsoLangByIndex
(
nIndex
);
sReplace
+=
"
\"
"
;
sTextTag
.
SearchAndReplace
(
sSearch
,
sReplace
);
sAdditionalLine
+=
sTextTag
;
sAdditionalLine
+=
sText
;
sAdditionalLine
+=
pStackData
->
sEndTextTag
;
sAdditionalLine
+=
"
\n
"
;
sAdditionalLine
+=
sLastWhitespace
;
Output
(
sAdditionalLine
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment