doxygen: Fix leading space in class member descriptions
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 30 Aug 2014 16:50:35 +0000 (18:50 +0200)
committerKrinkle <krinklemail@gmail.com>
Tue, 23 Sep 2014 03:07:18 +0000 (03:07 +0000)
Using ResourceLoader.php as example:
 $ php maintenance/mwdoc-filter.php includes/resourceloader/ResourceLoader.php

== Before ==

Filtered code:

    /**  Associative mapping ... */ protected array $moduleInfos = array();

    /**  $config */ private Config $config;

Note descriptions containing a leading slash which was matched after the type
hint in the original code.

== After ==

Filtered code:

    /** Associative mapping ... */ protected array $moduleInfos = array();

    /** $config */ private Config $config;

Change-Id: Idcdd487ad0f4fbabdd5665abfbb8492f5bac655a

maintenance/mwdoc-filter.php

index 268ccdb..8650689 100644 (file)
@@ -21,6 +21,7 @@ $regexp = '#'
        . '\s+'
        // Type hint
        . '([^\s]+)'
+       . '\s+'
        // Any text or line(s) between type hint and '/' closing the comment
        // (includes the star of "*/")
        . '([^/]+)'