Fix origin line to a signle leading space (reported by apam)
This commit is contained in:
@@ -492,7 +492,7 @@ function Packet(options) {
|
|||||||
} else if(line.startsWith('--- ')) {
|
} else if(line.startsWith('--- ')) {
|
||||||
// Tear Lines are tracked allowing for specialized display/etc.
|
// Tear Lines are tracked allowing for specialized display/etc.
|
||||||
messageBodyData.tearLine = line;
|
messageBodyData.tearLine = line;
|
||||||
} else if(/[ ]{1,2}(\* )?Origin\: /.test(line)) { // To spec is " * Origin: ..."
|
} else if(/[ ]{1,2}(\* )?Origin\: /.test(line)) { // To spec is " * Origin: ..."
|
||||||
messageBodyData.originLine = line;
|
messageBodyData.originLine = line;
|
||||||
endOfMessage = false; // Anything past origin is not part of the message body
|
endOfMessage = false; // Anything past origin is not part of the message body
|
||||||
} else if(line.startsWith('SEEN-BY:')) {
|
} else if(line.startsWith('SEEN-BY:')) {
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ function getOrigin(address) {
|
|||||||
Config.general.boardName;
|
Config.general.boardName;
|
||||||
|
|
||||||
const addrStr = new Address(address).toString('5D');
|
const addrStr = new Address(address).toString('5D');
|
||||||
return ` * Origin: ${origin} (${addrStr})`;
|
return ` * Origin: ${origin} (${addrStr})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTearLine() {
|
function getTearLine() {
|
||||||
|
|||||||
Reference in New Issue
Block a user