aurelienpierreeng / ansel

A darktable fork minus the bloat plus some design vision.
https://ansel.photos
GNU General Public License v3.0
688 stars 22 forks source link

Remove leading and trailing space in generated folder and file names #244

Closed Jiyone closed 5 months ago

Jiyone commented 11 months ago

WHAT IS THIS FOR?

This prevent the user to create folders and files with names containing whitespace characters at the beginning and the end. Those characters are usually written by mistake and leads to bugs in some backup programs for example.

HOW DOES IT WORK?

The PR insert a function just before saving the user's path syntax (in the Import and Export window) to remove those whitespace characters using g_strstrip().

sonarcloud[bot] commented 11 months ago

Quality Gate Failed Quality Gate failed

Failed conditions

4.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud