Skip to content

WIP: Re-indent surfraw script in more consistent way

Dmitry Bogatov requested to merge KAction/Surfraw:reindent-source-2 into master

Previously, "surfraw" script was indented with mix of tabs and spaces, with indentation visually matching nesing of control structures only with tab stop equal to 8, that defeats whole point of tabs.

With this change, all code uses tabs for indentation; all code is aligned with spaces. Here is example:

function_f () {
	case ${value} in
	-foo|-bar) setoptyn frob yes;;
	-q=*)      setopt   qq   $optarg;;
	*)
		funcall1
		funcall2
		;;
	esac
}

if [ -f /path/file ]
then
	if [ -n "${var}" ]
	then
		do_something
	else
		do_something_else
	fi
fi

Merge request reports