@macroses work for ImportBegin/ImportEnd
This commit is contained in:
parent
1314455a73
commit
70118c82d5
@ -10,6 +10,8 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
Notes for GoldED+ 1.1.5, /snapshot/
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
+ @macroses work for ImportBegin and ImportEnd now.
|
||||||
|
|
||||||
+ Node address will be shown on nodelist lookup, if point address is not found.
|
+ Node address will be shown on nodelist lookup, if point address is not found.
|
||||||
|
|
||||||
+ ')' and '(' chars can be used for advanced search.
|
+ ')' and '(' chars can be used for advanced search.
|
||||||
|
@ -1015,9 +1015,12 @@ void IEclass::editimport(Line* __line, char* __filename, bool imptxt) {
|
|||||||
batch_mode = BATCH_MODE;
|
batch_mode = BATCH_MODE;
|
||||||
|
|
||||||
// Add import begin text, if any
|
// Add import begin text, if any
|
||||||
if(*CFG->importbegin) {
|
if (*CFG->importbegin)
|
||||||
|
{
|
||||||
sprintf(_parabuf, "%s\n", CFG->importbegin);
|
sprintf(_parabuf, "%s\n", CFG->importbegin);
|
||||||
strischg(_parabuf, "@file", imp_filename);
|
strischg(_parabuf, "@file", imp_filename);
|
||||||
|
TokenXlat(MODE_NEW, _parabuf, msgptr, msgptr, CurrArea);
|
||||||
|
_parabuf[strlen(_parabuf)-1] = '\n';
|
||||||
_parabuf[margintext] = NUL;
|
_parabuf[margintext] = NUL;
|
||||||
_parabuf[margintext-1] = '\n';
|
_parabuf[margintext-1] = '\n';
|
||||||
__line = insertlinebelow(__line, _parabuf);
|
__line = insertlinebelow(__line, _parabuf);
|
||||||
@ -1189,9 +1192,12 @@ void IEclass::editimport(Line* __line, char* __filename, bool imptxt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add import end text, if any
|
// Add import end text, if any
|
||||||
if(*CFG->importend or *CFG->importbegin) {
|
if (*CFG->importend or *CFG->importbegin)
|
||||||
|
{
|
||||||
sprintf(_parabuf, "%s\n", *CFG->importend ? CFG->importend : CFG->importbegin);
|
sprintf(_parabuf, "%s\n", *CFG->importend ? CFG->importend : CFG->importbegin);
|
||||||
strischg(_parabuf, "@file", imp_filename);
|
strischg(_parabuf, "@file", imp_filename);
|
||||||
|
TokenXlat(MODE_NEW, _parabuf, msgptr, msgptr, CurrArea);
|
||||||
|
_parabuf[strlen(_parabuf)-1] = '\n';
|
||||||
_parabuf[margintext] = NUL;
|
_parabuf[margintext] = NUL;
|
||||||
_parabuf[margintext-1] = '\n';
|
_parabuf[margintext-1] = '\n';
|
||||||
__line = insertlinebelow(__line, _parabuf);
|
__line = insertlinebelow(__line, _parabuf);
|
||||||
|
Reference in New Issue
Block a user