fix conj logic
This commit is contained in:
parent
034c4d8c14
commit
5d779e52cd
|
@ -97,13 +97,16 @@ internal class Write : ITab {
|
|||
|
||||
if (this._conj != -1) {
|
||||
var conj = pack.Conjunctions[this._conj];
|
||||
if (conj.Length != 1 || !char.IsPunctuation(conj[0])) {
|
||||
var isPunc = conj.Length == 1 && char.IsPunctuation(conj[0]);
|
||||
if (isPunc) {
|
||||
preview.Append(conj);
|
||||
preview.Append('\n');
|
||||
} else {
|
||||
preview.Append('\n');
|
||||
preview.Append(conj);
|
||||
preview.Append(' ');
|
||||
}
|
||||
|
||||
preview.Append(conj);
|
||||
preview.Append(' ');
|
||||
|
||||
if (this._part2 != -1) {
|
||||
var template2 = pack.Templates[this._part2];
|
||||
var word2 = this._word2 == (-1, -1) ? placeholder : pack.Words[this._word2.Item1].Words[this._word2.Item2];
|
||||
|
|
Loading…
Reference in New Issue