diff --git a/Documentation/.gitignore b/Documentation/.gitignore index 3dc920dfae6..b74e41a61d1 100644 --- a/Documentation/.gitignore +++ b/Documentation/.gitignore @@ -1,3 +1,3 @@ TODO.txt ChangeLog.txt - +NuttXConfigVariables.html diff --git a/tools/kconfig2html.c b/tools/kconfig2html.c index c9374311ea3..623442a7866 100644 --- a/tools/kconfig2html.c +++ b/tools/kconfig2html.c @@ -118,6 +118,7 @@ enum error_e ERROR_APNDXFILE_OPEN_FAILURE, ERROR_KCONFIG_OPEN_FAILURE, ERROR_APPENDFILE_OPEN_FAILURE, + ERROR_MENU_LEVEL_UNDERRUN, ERROR_TOO_MANY_DEFAULTS, ERROR_MISSING_DEFAULT_VALUE, ERROR_GARBAGE_AFTER_DEFAULT, @@ -203,6 +204,7 @@ static int g_ndependencies; static int g_inchoice; static int g_menu_number; static int g_choice_number; +static int g_toggle_number; static const char g_delimiters[] = " ,"; @@ -1225,9 +1227,15 @@ static inline void process_help(FILE *stream, output_t outfunc) { /* Avoid putting an empty paragraph at the end of the help */ + if (preformatted) + { + outfunc("\n"); + preformatted = false; + } + if (!newpara) { - outfunc("\n

\n"); + outfunc("

\n"); newpara = true; } @@ -1268,7 +1276,8 @@ static inline void process_help(FILE *stream, output_t outfunc) { if (!preformatted) { - outfunc("\n