Commit 68927918 authored by piegames's avatar piegames
Browse files

treewide: Fix indentation in strings

The indentation stripping semantics of strings are fairly bad and have a
few gotchas where the resulting string has not the intended indentation.
This commit fixes most if not all such instances in Nixpkgs.

I tried to strive a balance between keeping the diff small and
reformatting/refactoring the code to look better. In general,
reformatting should be left to Nixfmt.

Note that this causes a lot of rebuilds by design. All changes need to
be thoroughly vetted and reviewed for correctness. There is no automatic
way to prove correctness.

List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the
warnings.
parent d5627dfc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -49,8 +49,7 @@ stdenv.mkDerivation rec {
  '';

  meta = with lib; {
    description = ''A real-time graphical programming environment for
                    audio, video, and graphical processing'';
    description = ''A real-time graphical programming environment for audio, video, and graphical processing'';
    homepage = "http://puredata.info";
    license = licenses.bsd3;
    platforms = platforms.linux ++ platforms.darwin;
+6 −4
Original line number Diff line number Diff line
@@ -36,10 +36,12 @@ stdenv.mkDerivation rec {

  doInstallCheck = true;

  installCheckPhase = ''(
    set -x
  installCheckPhase = ''
    (
      set -x;
      test -e $out/bin/setBfreeUI
  )'';
    )
  '';

  enableParallelBuilding = true;

+2 −2
Original line number Diff line number Diff line
@@ -99,8 +99,8 @@ stdenv.mkDerivation (finalAttrs: {
    homepage = "https://libresprite.github.io/";
    description = "Animated sprite editor & pixel art tool, fork of Aseprite";
    license = licenses.gpl2Only;
    longDescription =
      ''LibreSprite is a program to create animated sprites. Its main features are:
    longDescription = ''
        LibreSprite is a program to create animated sprites. Its main features are:

          - Sprites are composed by layers & frames (as separated concepts).
          - Supported color modes: RGBA, Indexed (palettes up to 256 colors), and Grayscale.
+18 −18
Original line number Diff line number Diff line
@@ -43,8 +43,8 @@ rec {

  meta = {
    description = "WYSIWYW editing platform with special features for scientists";
    longDescription =
    '' GNU TeXmacs is a free wysiwyw (what you see is what you want)
    longDescription = ''
      GNU TeXmacs is a free wysiwyw (what you see is what you want)
      editing platform with special features for scientists.  The software
      aims to provide a unified and user friendly framework for editing
      structured documents with different types of content (text,
+12 −12
Original line number Diff line number Diff line
@@ -16,8 +16,8 @@ stdenv.mkDerivation rec {

  meta = with lib; {
    description = "Optical character recognition (OCR) program & library";
    longDescription =
      '' GNU Ocrad is an OCR (Optical Character Recognition) program based on
    longDescription = ''
      GNU Ocrad is an OCR (Optical Character Recognition) program based on
      a feature extraction method.  It reads images in pbm (bitmap), pgm
      (greyscale) or ppm (color) formats and produces text in byte (8-bit)
      or UTF-8 formats.
Loading