I am trying to figure out how to group the specification attributes on the product page. Right now they are laid out in a table such as:

Color   Red
Color   White
Length  7 inch
Color  Blue

This layout is good as long as I enter the specifications in the right order; or take the time to number the attributes in each product (very time consuming). So, I am looking for a way to modify the code to show something like the following:

Color   Red | White | Blue
Length  7 inch

I found some helpful code suggestions in this post, but I am not positive how to implement, or if the code is still compatible with the 4.20 version.

Any help, greatly appreciated!