Freeplane: parse changelog file

This commit is contained in:
Steffen Lange 2025-05-11 14:03:30 +02:00
parent fe0303bcbb
commit fef3a414b5
2 changed files with 9 additions and 2 deletions

View file

@ -125,6 +125,11 @@ abstract class PatchBase {
$this->data = $str;
}
}
protected function str_extract(int $n) {
$lines = explode("\r\n", $this->data);
if (count($lines) > $n)
$this->data = $lines[$n];
}
private function curl(string $url, array $opts) {
if ($ch = curl_init()) {
curl_setopt($ch, CURLOPT_URL, $url);