Place a strip of masking tape along the edge of the surface adjoining the one that you wish to paint. Slightly overlap the edge with the tape by about 1/8 inch and then place a straightedge onto the tape along the straight paint line that you want. Run a utility knife lightly over the tape, cutting through the tape but taking care not to score the surface beneath. Peel the cut section of tape form the wall.
Apply a thin line of paintable latex caulk along the edge of the cut tape. Take your thumb and rub the caulking along the seam, thinning it out until barely visible while covering the seam completely. The caulk will fill in any of the gaps in the tape’s edge on the surface. Allow the caulk to dry for two hours.
Paint the surface normally with whatever type of paint is desired.
Pull the masking tape from the surface after painting, while the paint is still wet, to reveal the straight line on your painted surface.