• Just in case anyone else has this issue, or it inspires an extension:
    My tables all have the same delimiter (tab), and the TablePress import function sometimes guesses a different delimiter, eg if I have lots of   entries in the first row.
    To force the import to use only tab as a delimiter I have modded \classes\class-import.php, replacing
    $delimiter = $csv_parser->find_delimiter();
    by
    $delimiter = "\t";

    • This topic was modified 2 years, 10 months ago by PeterC66.
Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, that would be a proper modification for this scenario. Usually, this happens only on short CSV files, where there’s only limited information to properly guess the delimiter. For the future, I’m working on switching to a different CSV import code library, which should be better at this.
    Until then, this modification should indeed work, but I only recommend to apply it if really needed.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Fixed delimiter mod’ is closed to new replies.