"Galv Time Message Popup" line break

I'm using a custom plugin, to open the dialogue boxes of my characters, like this one:
Code:
var cap = ["<c:2,100,80>", "2,100,80"];
cap.index = 0;
var pos = 2;
var data = ["",0,0,0];
cap.input = "<c:2,100,80>Hey!";
$gameMap._interpreter.createCaption(cap,pos,data);
It even reads yanfly message plugins escape codes like "\\C" for color change.

But if I use something like:
Code:
cap.input = "<c:2,100,80>Hey!\\nOver here!";
Or:
Code:
cap.input = "<c:2,100,80>Hey!<br>Over here!";

It ignores the line break.
The visible line breaks on the editor are not ignored, only the code.

How can I add line breaks, like the ones the editor sends, to my code or change the Galv plugin to read line breaks?
I realized the editor sends the input in arrays so I changed my code to:
Code:
cap.input = ["<c:2,100,80>Hey!","Over here!"];
Each spot in the array is a different line.

I also changed the next code in galv plugin:
Code:
// get all text:
    while (this.nextEventCode() === 401) {  // Text data
        this._index++;
        txtArray.push(this.currentCommand().parameters[0]);
    };

for:
Code:
for (var i = 0; i <= cap.input.length-1; i++) {
        txtArray[i] = cap.input[i];
    };

Original thread: https://forums.rpgmakerweb.com/threads/galv-time-message-popup-line-break.89490/